package com.ws.prototype.simple;

import java.util.ArrayList;
import java.util.List;

public class CloneTest {
	
	public static void main(String[] args) throws CloneNotSupportedException {
		Bean bean = new Bean();
		bean.setAge(11);
		bean.setName("ws");
		List<String> list = new ArrayList<String>();
		list.add("fsd");
		
		Bean bean2 = (Bean)bean.clone();
		System.out.println(bean == bean2);
		System.out.println(bean.list== bean2.list);
	}

}
